﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace HumanElement.Xna.Proof.TestGame
{
    public abstract class Element : IElement
    {
        /// <summary>
        /// Gets or sets the name.
        /// </summary>
        /// <value>The name.</value>
        public string Name
        {
            get;
            set;
        }
        
        protected Element(string name)
        {
            Name = name;
        }        
    }

    public abstract class PhysicalElement : Element, IPhysical
    {

        /// <summary>
        /// Gets or sets the position.
        /// </summary>
        /// <value>The position.</value>
        public Vector3 Position
        {
            get; private set;
        }

        /// <summary>
        /// Gets or sets the rotation.
        /// </summary>
        /// <value>The rotation.</value>
        public Quaternion Rotation
        {
            get;
            private set;
        }

        /// <summary>
        /// Gets or sets the scale.
        /// </summary>
        /// <value>The scale.</value>
        public Microsoft.Xna.Framework.Vector3 Scale
        {
            get;
            private set;
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="PhysicalElement"/> class.
        /// </summary>
        protected PhysicalElement(string name) : base(name)
        {
            this.Position = Vector3.Zero;
            this.Rotation = Quaternion.Identity;
            this.Scale = Vector3.Zero;
        }


    }
}
